package com.security.dao;


import com.security.dto.SysUser;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

/**
 * @author 顾志杰
 * @date 2020/7/20-13:53
 */
public interface UserDao extends JpaRepository<SysUser, String>, JpaSpecificationExecutor<SysUser> {

    /**
     * 根据登录名称查询用户信息
     * @param username 登录名称
     * @return 用户信息
     */
    SysUser findByUserName(String username);
}
